import request from '@/utils/request'

// 查询样本组 列表
export function listSampleGroup(query) {
  return request({
    url: '/biobank/sampleGroup/list',
    method: 'get',
    params: query
  })
}

// 查询样本组 详细
export function getSampleGroup(sampGroupId) {
  return request({
    url: '/biobank/sampleGroup/' + sampGroupId,
    method: 'get'
  })
}

// 新增样本组
export function addSampleGroup(data) {
  return request({
    url: '/biobank/sampleGroup',
    method: 'post',
    data: data
  })
}

// 修改样本组
export function updateSampleGroup(data) {
  return request({
    url: '/biobank/sampleGroup',
    method: 'put',
    data: data
  })
}

// 删除样本组
export function delSampleGroup(sampGroupId) {
  return request({
    url: '/biobank/sampleGroup/' + sampGroupId,
    method: 'delete'
  })
}
